package com.yun.kin.blog.dao;

import com.yun.kin.blog.po.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author jin
 * @Description
 * @Date 2021/3/10 10:57
 */
public interface CommentRepository extends JpaRepository<Comment ,Long> {

    List<Comment> findByBlogId(Long blogId, Sort sort);
}
